package org.jmc.refmanager.web.wicket.markup.html.form.ChoiceRenderer;

import org.apache.wicket.markup.html.form.ChoiceRenderer;
import org.jmc.refmanager.domain.model.OrgUnit;

public class DirectionChoiceRenderer<T> extends ChoiceRenderer<OrgUnit> {
	private static final long serialVersionUID = 1L;

	@Override
	public Object getDisplayValue(OrgUnit direction) {
		return direction.getLibCourt();
	}
	
	@Override
	public String getIdValue(OrgUnit direction, int index) {
		return String.valueOf(direction.getId());
	}
}
